// src/router/index.js
// 路由配置
import { createRouter, createWebHistory } from 'vue-router'
import CompositionPages from '../views/CompositionPages.vue' // 主页组件
import OptionsPages from '../views/OptionsPages.vue' // 关于页面组件
import Content from '../views/Content.vue'
import Welcome from '../components/Welcome.vue'

const routes = [
    {
        path: '/',
        name: 'CompositionPages',
        component: CompositionPages
    },
    {
        path: '/option',
        name: 'OptionsPages',
        component: OptionsPages
    },{
        path: '/welcome',
        name: 'Welcome',
        component: Welcome
    },{
        path: '/content',
        name: 'Content',
        component: Content
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
